// pages/catigory/catigory.js
Page({

  onNavigate() {
    wx.navigateTo({
      url: "/packageB/pages/target/target?username=eggy&pwd=123456"
    })
  },

  onRedirect() {
    wx.redirectTo({
      url: '/packageB/pages/target/target?username=eggy&pwd=123456',
    })
  },

  onRelaunch() {
    wx.reLaunch({
      url: '/packageB/pages/target/target?username=eggy&pwd=123456',
    })
  },

  onSwitchTab() {
    wx.switchTab({
      url: '/pages/cart/cart',
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  },


  onBtnClick(event) {
    console.log("onBtnClick", event);
  }

})